package com.itsm.facade.entity.user;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户角色关联表
 * </p>
 *
 * @author 张权
 * @since 2017-09-28
 */
@TableName("sys_account_role")
public class AccountRole extends Model<AccountRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId("ar_id")
	private Long arId;
    /**
     * 用户主键
     */
	@TableField("account_id")
	private Long accountId;
    /**
     * 角色主键
     */
	@TableField("role_id")
	private Long roleId;
    /**
     * 是否锁定(默认为0不锁定，1锁定)
     */
	@TableField("is_lock")
	private Integer isLock;


	public Long getArId() {
		return arId;
	}

	public void setArId(Long arId) {
		this.arId = arId;
	}

	public Long getAccountId() {
		return accountId;
	}

	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Integer getIsLock() {
		return isLock;
	}

	public void setIsLock(Integer isLock) {
		this.isLock = isLock;
	}

	@Override
	protected Serializable pkVal() {
		return this.arId;
	}

	@Override
	public String toString() {
		return "AccountRole{" +
			"arId=" + arId +
			", accountId=" + accountId +
			", roleId=" + roleId +
			", isLock=" + isLock +
			"}";
	}
}
